Quick, fixed bug related to duplicate checks