fix bugs of uninitialized timeout and job id