removed rebug
Fixed sync issues with StateMachine