diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 67de14997c04435b08cb9f5778696b7993da0134..127084bb7eea851acc3a061d963642e604c6ea23 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: node:12-alpine
+image: node:16-alpine
 
 variables: &global_variables
   DOCKER_DRIVER: overlay2
diff --git a/Dockerfile b/Dockerfile
index fef057d9bf990bd2e45156f49ce0ffef01c8a22e..f5b9fe8beaf5277cb41dcb6211b206d6be7f29b5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM node:10-alpine as build
+FROM node:16-alpine as build
 
 COPY . .
 
diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue
index 0d9ce64346317776254b5f6ddca66fea4953d4f5..66fe0dc5952df89f183008ccf732a451fe4dd100 100644
--- a/src/views/layout/components/Navbar.vue
+++ b/src/views/layout/components/Navbar.vue
@@ -38,7 +38,9 @@ export default {
     },
     logout() {
       this.$store.dispatch('LogOut').then(() => {
-        location.reload()// In order to re-instantiate the vue-router object to avoid bugs
+        if (location.reload) {
+          location.reload() // In order to re-instantiate the vue-router object to avoid bugs
+        }
       })
     }
   }