typo in id generator that results in locking if clash was found