some fixes for ComplexLearner