network reading bug fix