Fixed error with readout