fix when onAnimEnd not set