How to remedy overcharge of lead-acid batteries