Fix OTA Assert when flashing