Fixing the dedupe methods