Fix for the animation direction