remove latch on next_state.