Fix inconsistent raw api using send()