pdf work_details bug fix