fixed rulebutton error