Fixing offline mode.
Fixing offline mode.