Fix crash in kill protection