Fixed duplicate rulesets problem