Thanks, but I don’t use a walker, I just use the plain function.
This is the contents of my $args:
orderby=name&order=asc&depth=3&exclude=9,1,5&hide_empty=1&title_li=&echo=0
It worked before installing 3.7. Now it just ignores the exclude and displays all categories.