minor bug fix in get_aliases