diff --git a/core/src/main/java/lucee/runtime/config/ConfigAdmin.java b/core/src/main/java/lucee/runtime/config/ConfigAdmin.java
index <HASH>..<HASH> 100755
--- a/core/src/main/java/lucee/runtime/config/ConfigAdmin.java
+++ b/core/src/main/java/lucee/runtime/config/ConfigAdmin.java
@@ -629,6 +629,7 @@ public final class ConfigAdmin {
 		data.setEL("autoDelete", ((ScheduleTaskImpl) task).isAutoDelete());
 		data.setEL("unique", ((ScheduleTaskImpl) task).unique());
 		if (((ScheduleTaskImpl) task).getUserAgent() != null) data.setEL("userAgent", ((ScheduleTaskImpl) task).getUserAgent());
+		else if (data.containsKey("userAgent")) rem(data, "userAgent");
 	}
 
 	public static void pauseScheduledTask(ConfigPro config, String name, boolean pause, boolean throwWhenNotExist, boolean reload)
Added a fix to updating the scheduled task to remove useragent key from the config file if that value is not provided for LDEV-<I>