fix some export errors