fix: kill_tree function