Fixed read callback error checking.