tableName bug fixed