fixed message sending issue with server