fixed connection leak