Fix peak find slow speed when spectrum has a large number of data points

The correction appears to be the same as the initial suggestion