fixed issue #105
Merge pull request #113 from kreczko/fix-merged-sample-fitting

fixed issue #105