fix an bug when get battery charge level