I tried to make an AC / DC power supply and it worked perfectly fine,by changing the switch it would either provide DC from the middlle wires or AC from the wires on the sides.Here is a picture of the circuit: diagram1 http://8pic.ir/images/kmwfgdyppyvsex9o1ire.jpg
I wanted to have only two output wires so I added another switch to totally disconnect the capacitor and the bridge rectifier like so: diagram2 http://8pic.ir/images/3alk4npyh1synwqriomn.jpg
While I switch it to DC it still works just fine.Then I discharged capacitor and changed the switchs positions to AC and powered it up again,this time the diodes started to heat up really fast despite the bridge was disconnected and I also noticed that the capacitor was charged again.
Am I missing something here? Why is there current in the DC part of the circuit and why is there not an AC output? Im a bigginer so please explain in simplest way possible