Fixing up dupes on import