fixed a network connection leak