Fix up permissions.