fixing ip_addr variable