Fixed sampleShrink() method