Some fixes in send function