fixed bug in worker