Debugged a lot... Now we got write file error in concurrency mang.