Fix StackOverflowError.