Fix arguments order in worker_loop