Remove dirty code in transReplac attribute.