fixes #2833
Merge pull request #2839 from digi604/fix-2833

fixes #2833