Fixing issue where links aren't added