fix ip length