crashing bug corrected when creating new patient in the persistent
database