Fixes inter-document links