Bugfix for primitive simulation
Merge pull request #21 from timfel/patch-4

Bugfix for primitive simulation