fixed bug with bootloader