Fix CodeSent error

Fixes #45
Merge pull request #102 from Xandaros/iss45

Fix CodeSent error!