fixing logistic