Fix offline mode