Fixed remaining query and set GalleryFactory to publish by default