turn off debugging for gallery