Fixed bug identifying self links.