fix the way to find vm