fix issue 10186
Merge pull request #2090 from hpohl/10186

fix issue 10186