Fix anchor link replacement