fixed problem when inserting in job table