fix problem with connected vartree vars appearing twice in connection data