Why my state return is taking so long?