Fixed to delete link from aliases dictionary after deletion.