Fix bugs on contact export.