fix regression on collections#index