Fix #1275 Model field type categorical broken