I fixed the issue #5317

Hello everybody!

I fixed the issue #5317. And made a Pull Request on GitHub. Can someone look on it?

Greetings

Christian