Fixed bug in add and remove iprange.