Why is my state return being rejected