statemachine: fixed deep transitions