Fix crash when bootstrapping