Fix bug, by which killing task had been broken