Fix socket reader error