fix async dns lookup bug