fixed firefox animation bug