fix index changes