fixed position error for state machine