Fix bug in createTables().
Cleaning.