Fixes a problem with menus disappearing if 'includeprefix' was not used.