Fixed some network listening issues