Fixed errors after first fitting