Bug fixes in VM creation process.