If the wire from the alternator stator is not routed carefully or if the stator is put on backwards then the primary chain can sometimes saw through the insulation on the wires. This can look like a shorted stator. It happened to me so I ty-wrapped the wire to the boss for the outer cover bolt.
My bike used to be yellow...
Russ