Fixed bug triggered when adding external aliases