How to deal with power leakage in energy storage charging piles