fix trigger for the animation