fixed error of fetch_shares method