Fixed bug with new link being selected after deletion