Fix undefined variables when looking for id
Merge pull request #20 from scottrobertson/fix-undefined-id

Fix undefined variables when looking for id