minor bugfix on gallery and snippet manager