Fix a bug in ScopedAliases.