remove leftover text fragment