Fixing the handling of rule values and tags.