rules: fix regression on object deletion