fix traversing issue