fix to return ipaddress itself for query with ipaddress string