diff --git a/contribs/gmf/examples/themeselector.html b/contribs/gmf/examples/themeselector.html
index b8cd82cfc604..125bda421b09 100644
--- a/contribs/gmf/examples/themeselector.html
+++ b/contribs/gmf/examples/themeselector.html
@@ -10,7 +10,7 @@
-
The theme selected is {{ctrl.manager.getThemeName()}}
+
The theme selected is {{ctrl.manager.getThemeName()}}
This example shows how to use the gmf.themeselector
directive from a c2c geoportal theme service.
diff --git a/contribs/gmf/src/controllers/AbstractAppController.js b/contribs/gmf/src/controllers/AbstractAppController.js
index 616e51ed0468..fbd5a84eb6aa 100644
--- a/contribs/gmf/src/controllers/AbstractAppController.js
+++ b/contribs/gmf/src/controllers/AbstractAppController.js
@@ -309,7 +309,6 @@ export function AbstractAppController($scope, $injector, mobile) {
// Reload theme when login status changes.
const previousThemeName = this.gmfThemeManager.getThemeName();
- this.gmfThemeManager.setThemeName('', true);
// Reload themes and background layer when login status changes.
this.gmfThemes.loadThemes(roleId);