Fixing dir problems.