minor bug fixes in sending...