traversing bug fix