I have the feeling this whole code block doesn't do anything, as it only sets the aliases on the `aliases` local variable. Can you add a test that uses the source? That would reproduce the problem and helps you fixing it I guess.