mindistmaxdens is broken. here's a test that proves it