fix for 5975d2369d87aeae9d910ccaae82844eb951e915
fix crash in gc due to uninitialized memory in connect
inline the Union function