fix off-by-one error in vm argument parsing

Signed-off-by: Yicheng Qin <qycqycqycqycqyc@gmail.com>