bug with animation