resolves #1808: Error when creating a new patient