fixed Statemachine