fix error
complete work thread