Fixed bug where editing URL would cause duplicates.