Fix initMenus method.