fixed some errors in logistic Regressions