Fixed an animation weirdness that would happen when animating between values very close to 1