fixed odd broken pipe error