Fix animations of menu.