fixed directory issues.