fix require gallery