Make end_id be inclusive.