Fix self-links