Fixes export errors.