fix minimum-distance compatibility with 2.x
visual test minimum-distance