bugfix in lc computation of compute_trend().