Bugfix: create primary index for more than buckets.