fixed an exception while loading patient information