fix a bug in eliminate the dup IP