Fix: Crash when adding with share function
Merge pull request #6 from pascalfree/issue#3

Fix: Crash when adding with share function