Fix: auto switching to offline