minor fixed in fitting.py