fix "send" method bug