fix an exception at startup
Merge pull request #2936 from devoncarew/devoncarew_ex_at_startup

fix an exception at startup