fix traverse method api