That's good new's..... If it does it again in a short period of time your regulator/rectifier is out...... It's zenier diode that gates excess voltage to ground has crapped out and is trickling all the battery voltage to ground... New batterys will do that and will drive you nuts knowing you just put a new battery in the bike and becomes less suspect in the hunt...
Curley