Fixed a bug on RuleSettings