new build and gallery fix