issue #20499
MacOS specific crash fixed;