diff --git a/lib/bb/command.py b/lib/bb/command.py
index 1fcb9bf14..695277f1e 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -310,7 +310,7 @@ class CommandsSync:
     def revalidateCaches(self, command, params):
         """Called by UI clients when metadata may have changed"""
         command.cooker.revalidateCaches()
-    parseConfiguration.needconfig = False
+    revalidateCaches.needconfig = False
 
     def getRecipes(self, command, params):
         try:
