fix error with animation