fix for calculating AP gain including field count