charging: fix unplug  issue.