fix an issue with fields in .net