fixed bug in kill