fix bug when transfer all wallet