fix galleryWizerd.js after weird error