fixed bug in vm_deploy.py