diff --git a/lib/geocoder/lookups/maxmind.rb b/lib/geocoder/lookups/maxmind.rb
index 7e67fae8967a5630ee9ebc1bc81f64f6d502b140..2ecb4c6652c2f79e30796759bbfec51762c7ffc0 100644
--- a/lib/geocoder/lookups/maxmind.rb
+++ b/lib/geocoder/lookups/maxmind.rb
@@ -75,7 +75,7 @@ module Geocoder::Lookup
     end
 
     def reserved_result
-      ",,,,0,0,0,0,,,"
+      ",,,,0,0,0,0,,,".split(",")
     end
 
     def query_url_params(query)
diff --git a/test/services_test.rb b/test/services_test.rb
index ad880eed29654b745173c36257c99f242626d0ca..3a4e8e1a55c436d558537f198af05fd8e37f94b1 100644
--- a/test/services_test.rb
+++ b/test/services_test.rb
@@ -226,6 +226,18 @@ class ServicesTest < Test::Unit::TestCase
     end
   end
 
+  def test_maxmind_works_when_loopback_address_on_omni
+    Geocoder.configure(:ip_lookup => :maxmind, :maxmind => { :service => :omni })
+    result = Geocoder.search("127.0.0.1").first
+    assert_equal "", result.country_code
+  end
+
+  def test_maxmind_works_when_loopback_address_on_country
+    Geocoder.configure(:ip_lookup => :maxmind, :maxmind => { :service => :country })
+    result = Geocoder.search("127.0.0.1").first
+    assert_equal "", result.country_code
+  end
+
 
   # --- Bing ---
 
@@ -333,7 +345,7 @@ class ServicesTest < Test::Unit::TestCase
     assert_equal 40.75004981300049, result.coordinates[0]
     assert_equal -73.99423889799965, result.coordinates[1]
   end
-  
+
   def test_esri_results_component_when_reverse_geocoding
     Geocoder.configure(:lookup => :esri)
     result = Geocoder.search([45.423733, -75.676333]).first