diff --git a/misc/yaml_to_json.py b/misc/yaml_to_json.py
index 1a7961a031923ed9280232dfec98d3a03e8c0e2a..a7d5bd62a7a1ccc50766b797ef6710466e9bee11 100755
--- a/misc/yaml_to_json.py
+++ b/misc/yaml_to_json.py
@@ -1,8 +1,9 @@
 #!/usr/bin/env python3
 
 import sys
-import yaml
 import json
 
+import yaml
+
 with open(sys.argv[1], 'r') as infile:
     print(json.dumps(yaml.load(infile)))
diff --git a/src/core/js/tour.js b/src/core/js/tour.js
index d798eb558266179483c7be7ebf37f5f083e78a1c..904677f2a35c008a9003fb6e17247572017063fd 100644
--- a/src/core/js/tour.js
+++ b/src/core/js/tour.js
@@ -691,9 +691,12 @@ var tour = new function() {
     /**
      * Initialize the tour.
      */
-    this.init = async function _in() {
+    this.init = async function _in(refresh=false) {
         try {
             tour.debug("initializing tour module");
+            if (refresh) {
+                localStorage.removeItem("tour_state");
+            }
             await tour.load_tour();
             tour.post_init();
         } catch (error) {