bugfix to logistic classifier