Fixed bug of tables not being created.