Removing unwanted links