fixed bug #2938
Merge pull request #788 from jet47:fix-2938