fixing concurrent mod exception, bug in logistic reg