bugfix in rules.js spec