bugfix for dupe resuls