Fixed bug 930

Changed the rule test to make an exception for zero or the rule itself.