fix #23174
Merge pull request #503 from Jojo-Schmitz/Bug-#23174

fix #23174