Fix naive eigenvalue calculations.