fixed bug when no potential peaks are found during a gap penalty estimation step