fix animation in safar