Fixed incorrect duplicates error