Logistic Regression bug fixed