Modifying AnimatedObject to fix resetting.