bugfix in rule creation