Fixed self linking bug