fixed bug with fitting failing