Fixed bugs in tpcc and IndexAwareTableScan