state machine bug

moves from 5 --> 6 (not 1)