S99: correct many malformed links