Fixed bug where local "nameTable" variable was undefined