fix appcrash when being in offline mode and timer times out