bug fix for the patient PDF report