shrink the index of d_Src[] to reasonable range. debug mode is ok, but wrong in release mode.