diff --git a/cooperative_cuisine/pygame_2d_vis/gui.py b/cooperative_cuisine/pygame_2d_vis/gui.py
index bdac64aa6540ce9b2e9248b0635e8d1317bdf218..d2393c903cc59bb5f9585402b731bfa119ed4270 100644
--- a/cooperative_cuisine/pygame_2d_vis/gui.py
+++ b/cooperative_cuisine/pygame_2d_vis/gui.py
@@ -2038,7 +2038,7 @@ class PyGameGUI:
                             if key_set.joystick == event.instance_id:
                                 key_set.joystick = None
                         log.debug(f"Joystick {event.instance_id} disconnected")
-                        log.debug("Number of joysticks:", pygame.joystick.get_count())
+                        log.debug(f"Number of joysticks:"+str(pygame.joystick.get_count()))
 
                     # Press enter key or controller start button instead of mouse button press
                     if (