Another patch for IP detection