fix text input disabling bug