repair some text