fix attach_ip