Fix menu insertion code so it finds default entries