Fix permissions after import