Qemu io bug fix

Include two small bugs fix in qemu-io