Prevent retriggering the animation

Did not properly do it before.