first gallery bugfix