fixed fix for isDuplciated