fix online learning