fix crash when field type changes.