fixed export/import patients defects.