fix infinite refresh in text operation