fix the bug of vm deploy