Fix crash in 5b00b405fa28a3cbe84e750ac7ee7b258f1b9612