diff --git a/ui/index.html b/ui/index.html
index c653417c..ed98bfc2 100644
--- a/ui/index.html
+++ b/ui/index.html
@@ -263,7 +263,7 @@
-
+
diff --git a/ui/media/js/image-modifiers.js b/ui/media/js/image-modifiers.js
index 0a03f876..f35ae2bd 100644
--- a/ui/media/js/image-modifiers.js
+++ b/ui/media/js/image-modifiers.js
@@ -270,7 +270,7 @@ function loadCustomModifiers() {
customModifiersGroupElement.remove()
}
- if (customModifiers.trim() !== '') {
+ if (customModifiers && customModifiers.trim() !== '') {
customModifiers = customModifiers.split('\n')
customModifiers = customModifiers.filter(m => m.trim() !== '')
customModifiers = customModifiers.map(function(m) {