Fix bug where the last menus/menus.txt definition was ignored