fixing null  jobs error