Fix bug with exists on an alias