diff --git a/app/assets/javascripts/kmz_compressor/map_layer_manager.js b/app/assets/javascripts/kmz_compressor/map_layer_manager.js
index <HASH>..<HASH> 100644
--- a/app/assets/javascripts/kmz_compressor/map_layer_manager.js
+++ b/app/assets/javascripts/kmz_compressor/map_layer_manager.js
@@ -70,7 +70,9 @@ window.MapLayerManager = function(map){
 
   // Returns the layer names
   function layerNames(){
-      return $(layers.slice(0)).map(function(){return name})
+      return $.map(layers, function(layer){
+        return layer.name
+      })
   }
 
   function addLayer(layerName, kml){
diff --git a/lib/kmz_compressor/version.rb b/lib/kmz_compressor/version.rb
index <HASH>..<HASH> 100644
--- a/lib/kmz_compressor/version.rb
+++ b/lib/kmz_compressor/version.rb
@@ -1,3 +1,3 @@
 module KMZCompressor
-  VERSION = "2.0.2"
+  VERSION = "2.0.3"
 end
Fixed bug in layerNames that caused them to return a list of empty strings.