Anderson transition on the Bethe lattice: an approach with real energies