Corrects duplicate check