fix bug during export (connector impl npe