fix error in gallery metadata