Fix crash caused by mysterious old code.