corrects link formating