d_value array index mapping bug found