bug fix in calculating send to self amount