Fix ResourcePermission.