fix the default loss to be logistic