fix online learning topology factory