fix debug check
Merge pull request #128 from MattArnold/debug-check

fix debug check