Temporary bug fix. Improved version coming.
Merge pull request #166 from askaway/bugfix-for-shares

Temporary bug fix. Improved version coming.