fixing bug in block_util_finalize