Fix load state error