Fix errors in Share.py