Fixed Safari animation bug