rootState.toState remain bug fixed