bugfix internal link replacement