Fixed "middle recursive" issue.