diff --git a/main/sched.c b/main/sched.c
index 97e07eab5f450011a73291106e7f1932dab1b581..34f8d5369b03059d9e2133ff8b89a2bb91f4e808 100644
--- a/main/sched.c
+++ b/main/sched.c
@@ -374,6 +374,7 @@ int ast_sched_add_variable(struct ast_sched_context *con, int when, ast_sched_cb
 		tmp->resched = when;
 		tmp->variable = variable;
 		tmp->when = ast_tv(0, 0);
+		tmp->deleted = 0;
 		if (sched_settime(&tmp->when, when)) {
 			sched_release(con, tmp);
 		} else {