fix open with duplicates