fixing an animation error