fixed major bug about the ids of the units in the clusters