small tweak for index copy