Fix possible exploits for sending messages