buf fix in lib.walkDir