Fix bug when using an alias