fix ip grab code