fixed dir traverse