Similar as 60956bb (fix for #39) but now for integrals

Here the same issue occured as with the pulseheights
It is less obvious here because first .57 * 2.5 was calculated
That means that the -1 values were still -1 after the multiplication