fixed StackOverflow in checkTreeTable