minor bug fix with animation