Fxed bug on inactive field
Merge pull request #14 from madmatt71/master

Fix bug in inactive event check