fixing a bug on the menu