correct TR8 rule; use xreplace instead of replace