Fix crash in 42b9ad