Fix file not found bug