Fixed regression in min_skirt_length. Includes regression test. #2337