Fixed table creation issue