Updating link reference to correct document