Related to #84. Fixes the flash after the animation.