fixed errors in recv_line