fixed empty getStates.
fixed empty getStates.