bug fix in worker