bug fix with animation