fixed minPeakSize not being passed