fixed a bug where I was passing the wrong argument when setting title tag for gallery