fixed StackOverflowError