Gen 1 Rectifier And Stator


I was riding and my battery light came on red and went back to green, then then the bike completely shut off. I smelled something burning. I have no power at all when I turn the key. No gauges no lights, nothing. The rectifier was burnt up when I took it off to check it. Also, the 30 amp fuse was blown, so I changed that, I checked the ignition fuse and all the other fuses and they are ok. I changed the rectifier and still no power tomorrow I'm going to change the stator too. Would this problem cause the bike to not have power to the gauges, lights?
The battery is good and my phone charger works which is hooked directly to the battery.