fixed bug with duplicate guid check