fix bug in send