fixed a data inconsistent bug after deleting a VM