Corrected table creation