fix buy_shares bugs
fix buy_shares bugs