Fix index update