Fixed bug when adding shares