Fixed StackOverflowError.