Fixed bug in lookupTable2.py introduced when refactoring