BUGFIX: fixed bugs in send message window.