diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua
index 0b197664081bae00a22916eb40c88be1f3c81482..4deff281dd5f53f8001f38c3e89a9f66884eb3b4 100644
--- a/builtin/game/chatcommands.lua
+++ b/builtin/game/chatcommands.lua
@@ -859,7 +859,7 @@ core.register_chatcommand("clearobjects", {
 	description = "clear all objects in world",
 	privs = {server=true},
 	func = function(name, param)
-		options = {}
+		local options = {}
 		if param == "" or param == "full" then
 			options.mode = "full"
 		elseif param == "quick" then