fix index edit