fixed error when no menu items