Fixed an issue with the text field model