fix a wrong range clip