fixing offline charging