fixed a float->int bug in peak_pick