Corrected creating of table