Fix a bug in vg method in IPO2.