Yet another bug fix (next_block was initialized to 0; now set to 1).