Fixed potential decode error in text field