Index: umc/app.js =================================================================== --- umc/app.js (Revision 68171) +++ umc/app.js (Arbeitskopie) @@ -1552,7 +1552,7 @@ domClass.toggle(favoritesCategory._button.domNode, 'favoritesHidden', emptyFavorites); // take the first visible category as fallback for the last selected one - this._lastCategory = emptyFavorites ? this.getCategories()[1] : favoritesCategory; + this._lastCategory = emptyFavorites ? this.getCategories().filter(function(category) {return category['id'] != '_favorites_'})[0] : favoritesCategory; // spread category buttons over whole width styles.insertCssRule('.umc .umcCategoryBar .dijitButton', lang.replace('width: {0}%', [100.0 / this.getCategories().length]));