fix something in logistic regreesion