fix menu items sometimes not showing up