fix text replacement finally