Fix export
failing on input duplicates
#2098
Merged
export
failing on input duplicates
#2098