Fix read bug