Fix tail animation bug