fix bug during export (npe for connector impl)