fixed error with readout