Fixed issue where table data was being referenced with the wrong variable name.