recover some changes made on VM during exporting