fixed bug in create table