one more bugfix in duplicate correction