fixing TrieKeyAlreadyExistsException when aliases are defined multiple times