Correct the state bug

And I edit the getStates in UserInfo