fix chunk read bug