Fixed to work with current version of qemu