bugfix in comparing different entries in duplicates.py filter