Fix state transition animations.