The wrong fitting.py was migrated from older version, mistake corrected here