Fixed directory issues.