fix validation bugs for rulesSet