small fixes in peakfinder