Fix bug in rule set model.