memory leak in worker fixed