an: fix the rule parsing