Fixed ready state error.