offline_mode_state_fix

Fix problem with offline status mode saved in the file. Causes opposite status shown in the UI.