fix for create table with global indexes