fix the probelm that not all jobs been inserted when init