fix a js bug in rule config template