If there are more than one line generated, all the consumptions must be saved instead of just the last iterated. issue6680 review41471002
issue6043 review32811002