fixed bug of animate