fix fields not being cleared from the map if they weren’t used for field counting