diff --git a/bin/daemon.php b/bin/daemon.php
index f9ed693f3..577e884eb 100755
--- a/bin/daemon.php
+++ b/bin/daemon.php
@@ -126,7 +126,7 @@ if ($mode == 'status') {
 
 	unlink($pidfile);
 
-	DI::config()->set('system', 'worker_daemon_mode', false);
+	DI::keyValue()->set('worker_daemon_mode', false);
 	die("Daemon process $pid isn't running.\n");
 }