BUGFIX:Writing files in parallel causing trouble in some windows systems