Text replace fix