Fix replace prefix adapters