Fix update index