fitLine error fixed