fix open source charging mode