Fixed Eigen error vector calculation