Fix semi-critical bug in `initializeCrossDomainConnection`