Fixed the transition listener from stopping the animation when running for a long time