approx3d(): correct error in indexing