fix bug related to textentry update with race condition