Fix animation glitch when restoring menu.