fix exception
Merge pull request #2532 from devoncarew/devoncarew_nit

fix exception