Fixed double connection delete