fix textfield count error