fix Replace

wasn't making sense at all