Fix bug with dash-separated gallery name