fixed some bugs for saving ruleset forms