fix field count