Fix another bug in `initializeConnection`