animation bug fix