gallery upgrade n fix