fix bad find and replace for external identifiers.