Modify bug in spice UI

Last spice patch push hard code in spice UI, this patch is working
for fix this issue.
Signed-off-by: zhoumeina <zhoumein@linux.vnet.ibm.com>