fix linking if it already exists