make the links valid.