Fix vm name in func