fixes #17999: buildRendering fails in rtl