fixed extrapolation problem for VC9

fixed extrapolation problem for VC9