Fix VM context creation