removing bug where connection would never happen