fix bootloader check