Correct bug on gallery tags