fixed a create table bug