Fix bug if replace-outer and so lose cx-url attribute