fixed bug where new links would not be created