resolved bug when added link already exists