fix rangelength validation issue