Fixed bug where renaming a gate did create a duplicate gate on save.