minor bug fix with send() method