fix previous pull request related to deleting aliases