Fix getAliases() so it no longer returns an empty string.