Fix iv stab bug with iv curve