bug fixes (the patient name problem)