fixed some glitches in the AnimationCommands