Fixing directory issues.