Fixed a bug where text would deselect itself when user types substring.
Fixed for real this time.