[linuo] fix bug for tree traverse