diff --git a/scripts/change_url b/scripts/change_url
index 845c04d..6abc645 100644
--- a/scripts/change_url
+++ b/scripts/change_url
@@ -111,8 +111,8 @@ fi
# Change the path in system.xml config file
if [ $change_path -eq 1 ]
then
- # If the Startup Wizard was not complete, was reverted back to default when stopping the service
- if grep -q "false" "/etc/jellyfin/system.xml"; then
+ # If somehow was not replaced during install
+ if grep -q "" "/etc/jellyfin/system.xml"; then
ynh_replace_string --match_string="" --replace_string="$new_path" --target_file="/etc/jellyfin/system.xml"
else
ynh_replace_string --match_string="$old_path" --replace_string="$new_path" --target_file="/etc/jellyfin/system.xml"