fix remote mappings with regexp patterns.