Fix call in rules.apply