fix index updates