bugfix dependency to statemachine