Fix data reading.