Fixed OTA updates blocking code