Remove exception in animate()