fix index update