Making sure the menu doesn't wrap