equalStates fix