Fixed little bug in gallery displayCategory