fix #7339
Merge pull request #7346 from pille/patch-2

fixes #7339