fix empty query on table creation