Battery self-repair principle