fixed index out of bounds exception in frmPatient