fix the killed_by functionality.