Fix bug breaking enum indexing
Merge pull request #11 from wycats/master

Fix Enum indexing