fix to avoid probleme caused by field API inconsistency