Fix invalid field type