Fixed a StackOverflowException.