diff --git a/qubesmanager/main.py b/qubesmanager/main.py
index c67d312..b279fc7 100755
--- a/qubesmanager/main.py
+++ b/qubesmanager/main.py
@@ -220,7 +220,7 @@ class VmShutdownMonitor(QObject):
return
reply = QMessageBox.question(None, "VM Shutdown",
- "The VM '{0}' hasn't shutdown within the last {1} seconds, do you want to kill it?
".format(vm_name, vm_shutdown_timeout/1000),
+ "The VM '{0}' hasn't shutdown within the last {1} seconds, do you want to kill it?
".format(vm.name, vm_shutdown_timeout/1000),
"Kill it!", "Wait another {0} seconds...".format(vm_shutdown_timeout/1000))
if reply == 0: