Fix a TR internal error