fix online mode