fix charger mode error