Prevent error galleryData.json