Fixes for various text field bugs