Fixed bugs for grouped charging, battery initSOC as found by Lu