Fix another small bug with range removal