correcting a malformed anchor