Another fix for linear fit loop. Array definition was set in incorrect loop.