fix cur_block logic