fix range distance in optional names