Fix 2d eigenvalues code
See merge request !205 (merged)
This will create a new commit in order to revert the existing changes.