bug fix, text format set after each text change