fix error in galleryList.json generation