diff --git a/sonarr/rootfs/etc/services.d/nginx/run b/sonarr/rootfs/etc/services.d/nginx/run
index eeb45ec1f..84fa0041a 100644
--- a/sonarr/rootfs/etc/services.d/nginx/run
+++ b/sonarr/rootfs/etc/services.d/nginx/run
@@ -18,7 +18,7 @@ if bashio::config.has_value 'CONFIG_LOCATION'; then
fi
# Set UrlBase
-if ! grep -q "/$slug" "$CONFIG_LOCATION" && ! bashio::config.true "ingress_disabled"; then; then
+if ! grep -q "/$slug" "$CONFIG_LOCATION" && ! bashio::config.true "ingress_disabled"; then
bashio::log.warning "BaseUrl not set properly, restarting"
sed -i "/UrlBase/d" "$CONFIG_LOCATION"
sed -i "//a \/$slug<\/UrlBase>" "$CONFIG_LOCATION"