Fixed 'stack overflow' problem.