Simulation of line follower sensor circuit

Hi. I’m doing a simulation for line follower robot for my final year project. I’m using proteus.
My problem is, when i’m trying to connect the regulator circuit to sensor circuit, the regulator will give high voltage. It suppose to be 5V as it is 7805 regulator

but if i connect battery directly to the circuit, it works.

But i need to use the regulator circuit to give constant of 5V from 9V battery. Can someone please help me?

Either the software, or the simulation of the regulator, or your configuration thereof, is wrong, then.