fix textpreview