fixed refitting of line for subset of observations