Fix eigenvector calculation