fixed message sending from dialogs