Fixed --dup-only flag not working