Fix variable printing in rules;