Fixed StackOverflow when adding exclusions

Hi John,

I opened a bug on this, then decided to take a whack at it...

Cheers,

-Brandon