dealing with severe find peaks bug