fixed io read bug