fix inheritance of fields