fix a stack overflow issue in the analyzer
Merge pull request #1697 from devoncarew/devoncarew_fix_analysis

fix a stack overflow issue in the analyzer