Middle leg of that regulator chip is ground. It is common to the mounting tang. The mounting tang really should be against a heat sink and grounded also. If this regulator isn't grounded one way or another, and gets 12 volts in, 12 volts goes right through and out on the 3rd leg. The chip...