Fixed a slight bug in UI flow when adding patient.