Fix bug with category languages in gallery