fix primitive
Merge pull request #113.