Fix crash on bootstrap connecting