fix pointed directory