fix gammaFit scale, and use optim