fix for message showing up when no sockets are present