fix bug when charge is unknow