fixed bug of loading animation