Fixes calculation of covariance matrix from Jacobian.