Minor bug fix in chunk tree traversing