fix fallback logic if ip wont resolve