Bug fix for message sent