fix bug : should create table first