fix the backtracking bug

add SinkList argument in the traverse function