fix #29810: workaround for Mac/Xcode bug