boot_from_device bug fix