fix #297
Merge pull request #298 from denbkh/master

fixes #297