Attempt at fixing dir.