Fixed a bug that non-looped animation will trigger callback function every animation frame after it finishes its animation.