Fixed a bug for logistic recommendation model