fix rangelength validate issue