Index: trunk/packages/sipb-xen-www/code/main.py
===================================================================
--- trunk/packages/sipb-xen-www/code/main.py	(revision 514)
+++ trunk/packages/sipb-xen-www/code/main.py	(revision 515)
@@ -106,6 +106,7 @@
     autoinstall = ''
     name = ''
+    type = 'linux-hvm'
+
     def __init__(self, max_memory=None, max_disk=None, **kws):
-        self.type = Type.get('linux-hvm')
         if max_memory is not None:
             self.memory = min(self.memory, max_memory)
Index: trunk/packages/sipb-xen-www/code/templates/functions.tmpl
===================================================================
--- trunk/packages/sipb-xen-www/code/templates/functions.tmpl	(revision 514)
+++ trunk/packages/sipb-xen-www/code/templates/functions.tmpl	(revision 515)
@@ -37,5 +37,5 @@
 <label>
    <input #slurp
-#if $default == $vmtype then 'checked' else ''
+#if $default == $vmtype[0] then 'checked' else ''
  type="radio" name="vmtype" value="${vmtype[0]}">${vmtype[1]}</input>
 </label>
