fix permissions after syncing