Fix a bug in lookup function on Android 2.x
Merge pull request #542 from timrae/lookupFix

Fix a bug in lookup function on Android 2.x