fix menu item sorting error