Fixing and validating links