Fixing $dupecheck test and copy/paste error.