Fixed broken code
Merge pull request #22 from buren/fixIdToInt

Fixed broken code