fixed valid_share & total_share typo found by rltczm