corrected links
replace by index, not content