Fix dup on windows