Fix range logic fail. (Sorry!)