Index: src/SynTree/Declaration.cc
===================================================================
--- src/SynTree/Declaration.cc	(revision 447c35601995880f86baa595fb0755c65564b620)
+++ src/SynTree/Declaration.cc	(revision 1a5ad8ce487f1686045c73a490c9c2c86859213b)
@@ -42,4 +42,6 @@
 
 void Declaration::fixUniqueId() {
+	// don't need to set unique ID twice
+	if ( uniqueId ) return;
 	uniqueId = ++lastUniqueId;
 	idMap[ uniqueId ] = this;
