fixed total message count for sending messages
sorted issue with awaiting publishing/sending messages