Are you using your new menu in the same file? If not, that would explain your problem since the alias in question is a local alias (alias -l; l for local) only and not usable by other scripts.