fixed issue with rules not properly evaluating