Fix some madness/bugs in send.c