fix bug Logistic

fix bug Logistic