diff --git a/tile_gen/Dockerfile b/tile_gen/Dockerfile
index e51a66e8f631d3acc843953c71520fdc614d53c3..7393160d4d81169369dfdba0c247b02b5a7a7b26 100644
--- a/tile_gen/Dockerfile
+++ b/tile_gen/Dockerfile
@@ -3,7 +3,7 @@ FROM tiledb/tiledb-geospatial:latest
 WORKDIR /work
 
 RUN apt-get update && apt-get install -y unzip && \
-    wget http://ssec.wisc.edu/~rayg/pub/amqpfind.zip && \
+    wget http://www.ssec.wisc.edu/~rayg/pub/amqpfind.zip && \
     unzip amqpfind.zip && \
     rm amqpfind.zip && \
     rm -rf /var/lib/apt/lists/*
diff --git a/tile_gen/tile_index.py b/tile_gen/tile_index.py
index bba12ad9f494baa1ea9372608fad992455219016..1879670a26f1428f18231ecbb69d129c9c824483 100644
--- a/tile_gen/tile_index.py
+++ b/tile_gen/tile_index.py
@@ -70,8 +70,8 @@ def shapes_generator(input_files, prev_shapefile, shared_bbox=False):
             # the old shapefile includes a file that we no longer want
             # keep going through the existing shapes until we find one we
             # do want
-            location, shape_info = next(prev_shapes, default_shape)
             yield 'removed', location, shape_info
+            location, shape_info = next(prev_shapes, default_shape)
             continue
         yield 'existing', location, shape_info
         location, shape_info = next(prev_shapes, default_shape)