offline mode fix