fix: max_noutput_items is set globally but it should be local to a block.