Fix my dirty copy and paste in the dirty links function