error in overwriting files during parallel fixed