Fixed a bug where links were duplicated.