[FIX] Fix bug where multiple gallery tags cause errors.