correction max_distance type=int and unit=pixel