Fix receive error bug.