fix error in write process from work thread