safari animation bug fix