fix bug #238
Merge pull request #239 from vwiencek/bugfix/issue238

fix bug #238