fix online offline