Fixing two eigenvalues by a minimal perturbation