fixed bug of ui animation