Fix the webkit animation bug