Fixes include and exclude with breadth first search.