fixes #156
Merge pull request #157 from cjolif/bugfix

fixes #156