animating bug fix