fix invalid read memory finished2