fix percent status bug

fix charge and discharge bug on system startup.