The exclude visits permission is in effect even though I do not have any roles with the permission selected. When I ran the code this part

elseif (statistics_advanced_user_access('exclude visits from counters')) {
      _statistics_advanced_ignore('nodecounter', TRUE);
}

is executed even though no roles have the "exclude visits from counters" permissions checked.