Bug fixed in getMenus