Fix file not directory