Rule comparision fix.