fix error in access_patient table