fixed bug in peak finding