Fix script error in jobdetails