fitted gamma model and fixed problem in logistic