Fix bug in text field automatic capitalization attribute