Fixed bug in bootloading.