fixed bug with self links