Fix bug with bind ip resolution.