Fix Animation State Machine

fixed problem with animations