Fix #12442.