need to fix ko situation in tree building

including 3 kos