small bug in animate