-fixed bugs with animations

Signed-off-by: ymsquall <ymsquare@hotmail.com>