Fix bug where accumulator result was not visible on RHS of rules.