fixed empty getStates.