Bug fixing in rule result creation.