fix compilation error in CreateTables