fix menu when no page avaable