fixed bug with blocking outgoing connection