#6 fix for the minDuration bug reported by marks