You need to wrap this in a while loop as `aliasOf` can be point to another alias itself.