Fix when New Connection window is open, messages are not received