Fixed passed argument in checkDupes