Fix calling flash_erase_all_and_exec