Changed the internal behavior of aliasReplacer