fix function args in BFS/DFS