fix walk for empty dir