Fixed segfault while booting reported by heroxbd