Fix bug where text fields were set as time fields.