fix bug plot_pi in vpc