fixed a bug in create table