fixed permission problem during export