Fixed bug in deleting alias