fix a bug where trash rules are not enforced