Luckily your problem was easily fixed. Some cars seem to have lots of wiring weirdness. Alternator , battery, general wiring are usually things to inspect when you have these problems.