Fixed crash in qemu