Fixed the ip bug