fixed a state trasition