Fixed a bug on the off/online switcher on pages