Fix a bug with resizing the map down again when the map hits zero items.