Fix OnlineLogisticRegression to be compatible with old version.