Fix bug in checkColumnForDuplicates