diff --git a/index.html b/index.html
index f9ea649..b5b3bce 100644
--- a/index.html
+++ b/index.html
@@ -137,7 +137,7 @@
-
+
@@ -1439,7 +1439,7 @@
Load from Local Storage
const element = document.querySelector(".file-item.active");
let fileName;
- if (typeof element === "undefined"){
+ if (element == null || typeof element === "undefined"){
fileName = "default";
} else {
fileName = element.textContent;