use unique index names, fixed #22