diff --git a/qubesmanager/block.py b/qubesmanager/block.py
index cec4c73..a826a1e 100644
--- a/qubesmanager/block.py
+++ b/qubesmanager/block.py
@@ -154,7 +154,7 @@ class QubesBlockDevicesManager():
if len(serves_for) > 0:
msg = "VM " + vm.name + " attaches block devices to other VMs: "
- msg += ', '.join([""+v+"("+d+")" for (d,v) in serves_for ])
+ msg += ', '.join([""+v.name+"("+d+")" for (d,v) in serves_for ])
msg += ".
Shutting the VM down will dettach the devices from them."
QMessageBox.warning (None, "Warning!", msg)