Trying to fix getaddrinfo error