Fixes timeing of animations.