fix oddity with index not updating