Fixed table creation error