fix job.wait signature